import Vue from 'vue'
import Vuex from 'vuex'
import permission from './modules/permission'
import user from './modules/user'
import tagsView from './modules/tagsView'
// import menuList from './modules/menuList'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    messageString:{},
    dwshows:{}
  },
  mutations: {
    getmsg(state,param){
      state.messageString=param;
      console.log(state.messageString,'999999')
    },
    getdw(state,param){
      state.dwshows=param;
      console.log(state.dwshows,'看看dw')
    }
  },
  actions: {
  },
  modules: {
    
   
    // menuList
  },
  // 定义全局getters 方便访问user 模块的roles
  getters:{
    roles: state => state.user.roles,
    permission_routes: state => state.permission.routes,
    messageString:state=>state.messageString,
    dwshows:state=>state.dwshows
    // menuClick: state => state.menuList.menuClick
  }
})
